# GNU Make 3.81
CXX = g++
lib = -L/usr/local/lib -lgif
out = gif2pam
obj = main.o
testfile = ff-logo-big

.PHONY: all
all: $(obj)
	g++ $(obj) -o $(out) $(lib)

.PHONY: test
test:
	./$(out) $(testfile).gif
	convert $(testfile)[0].pam $(testfile)[0].png

.PHONY: clean
clean:
	$(RM) $(obj) $(out).exe $(out).exe.*

.SUFFIXES: .o .c
.c.o:
	$(CXX) -c $<
